<template>
	<div class="isLogin"></div>
</template>

<script>
export default {
	name: "isLogin",
	data() {
		return {}
	},
	computed: {},
	created() {
		const token = window.localStorage.getItem("token")
		if (token) {
		}
		const query = this.$route.query
		if (query.token) {
			window.localStorage.setItem("token", query.token)
			window.localStorage.setItem("fortressRefreshToken", query.refreshToken)
			window.localStorage.setItem("fortressExpiredTime", query.expiredTime)
			window.location = "/admin/home"
		} else {
			window.localStorage.clear()
			window.location = "/"
		}
	},
	methods: {},
	components: {},
}
</script>

<style lang="scss" scoped>
.isLogin {
}
</style>
